package com.ruicar.afs.cloud.filecenter.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruicar.afs.cloud.filecenter.entity.AfsFileStore;
import com.ruicar.afs.cloud.filecenter.vo.FileStoreVo;
import org.springframework.web.multipart.MultipartFile;

/**
 * IFileStoreService
 * <p>Description: </p>
 *
 * @author Fzero
 * @version 1.0
 * @date create on 2020-01-02 12:06:01
 * @since 1.0
 */
public interface IFileStoreService extends IService<AfsFileStore> {
    /**
     * Store file file store vo
     * <p>Description: </p>
     *
     * @param file             file
     * @param md5              md 5
     * @param chunkNumber      chunk number
     * @param currentChunkSize current chunk size
     * @param totalChunks      total chunks
     * @param totalSize        total size
     * @param fileGuid         fileGuid
     * @return the file store vo
     */
    FileStoreVo storeFile(MultipartFile file, String md5, int chunkNumber, int currentChunkSize, int totalChunks, long totalSize, String fileGuid);
}
